import request from '@/utils/request'

// 查询睡眠列表
export function listRing_sleep(query) {
  return request({
    url: '/ring/ring_sleep/list',
    method: 'get',
    params: query
  })
}

// 查询睡眠详细
export function getRing_sleep(id) {
  return request({
    url: '/ring/ring_sleep/' + id,
    method: 'get'
  })
}

// 新增睡眠
export function addRing_sleep(data) {
  return request({
    url: '/ring/ring_sleep',
    method: 'post',
    data: data
  })
}

// 修改睡眠
export function updateRing_sleep(data) {
  return request({
    url: '/ring/ring_sleep',
    method: 'put',
    data: data
  })
}

// 删除睡眠
export function delRing_sleep(id) {
  return request({
    url: '/ring/ring_sleep/' + id,
    method: 'delete'
  })
}
